//
//  EveAnnedHeaderView.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class EveAnnedHeaderView: BaseTableHeaderFooterView {
    
    
    @IBOutlet weak var leftLabel: UILabel!
    
    var model : LastPblishModel?{
    
        didSet{
            
            if model == nil {
                return
            }
            
            leftLabel.text = "期号: \(model!.od_no)"
        
        }
    
    }

    @IBAction func btnDidTap(_ sender: UIButton) {
        
        if model == nil {
            return
        }
        
        let temp = SurpriseShopDetailVC()
        
        
        temp.odId = model!.od_id
        
        
        viewController().navigationController?.pushViewController(temp, animated: true)

    }

    override func awakeFromNib() {
        super.awakeFromNib()

        contentView.backgroundColor = UIColor.colorWith(r: 250, g: 243, b: 197)
        
    }

}
